<template>
  <div class="imgswiper">
    <wc-swiper class="swiper" v-if="imgList.length">
      <wc-slide v-for="(item, index) in  imgList">
        <router-link to="/detail"><img :src="item.img"/></router-link>
      </wc-slide>
    </wc-swiper>
  </div>
</template>

<script>
  export default {
    name: "imgswiper",
    data() {
      return {}
    },
    props: {
      imgList: Array
    },
  }
</script>

<style scoped lang="less">
  .swiper {
    height: 120px;
    width: 100%;
    img {
      width: 100%;
      height: 100%;
    }

  }
</style>
